# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=wf-recorder
pkgver=0.3.0
pkgrel=0
pkgdesc="Screen recording for wlroots-based compositors"
url="https://github.com/ammen99/wf-recorder"
arch="all !ppc64le"
license="MIT"
makedepends="meson ffmpeg-dev opencl-headers pulseaudio-dev wayland-dev wayland-protocols
	x264-dev scdoc opencl-icd-loader-dev"
subpackages="$pkgname-doc"
source="https://github.com/ammen99/wf-recorder/releases/download/v$pkgver/wf-recorder-$pkgver.tar.xz"
options="!check" # no test suite

build() {
	abuild-meson . output
	meson compile -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
6c8a069c923a342441ab5ebce2cf8ec727b75f474c2843d0fa49b69b3e5ef4498bc0548573409203e704a84a72ebec5523f89459a144679bf1d9d5bf6e514b60  wf-recorder-0.3.0.tar.xz
"
